Control Class

Control classes include the NotePlayer and ContextualMenu controls. The RectControl class is subclassed from the Control class.

Events

Close

Open


Properties

Handle

Index

MouseX

MouseY

Name

PanelIndex

Window


Methods

Close


More information available in parent classes: Object


Notes

Changing the Cursor

The MouseCursor property controls which cursor will be displayed while the mouse is within the control, assuming that the MouseCursor properties of the Application and parent Window classes are Nil. You can, for example, assign different MouseCursors to different controls within a window and the shape of the pointer will change whenever it is over a particular control. The Cursors module contains a library of custom cursors that you access with the syntax System. Cursors.MouseCursorName. Please see the MouseCursor class for information about the library of custom cursors.

If you also need custom cursors at the Window or Application levels, you need to manage them along the lines described in the section on the MouseCursor class.

Custom Cursors in Windows

If you need to use custom cursors in the Windows build of your application, you can do so using a slightly modified version of this technique.

With a resource editor, create a CURS resource that contains only one cursor. Give the resource file a name that indicates the type of cursor contained in the resource file.

Repeat this process for each custom cursor.

Add all the resource files to the Project Editor.

You can then access each custom cursor by name, e.g.

Me.MouseCursor=Pen

,


See Also

NotePlayer control; Object, RectControl, classes.